//
//  ViewController.m
//  IOS_CustomAlertView
//
//  Created by Hshd on 15/7/28.
//  Copyright (c) 2015年 Hshd. All rights reserved.
//

#import "ViewController.h"
#import "SDAlert.h"

@interface ViewController ()<SDAlertDelegate>



@end


@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.view.tag = 1092;
 

}


- (IBAction)btnClick:(id)sender
{
    
    UIView *vi = [[UIView alloc] init];
    vi.backgroundColor = [UIColor redColor];
    
//    SDAlert *alert = [[SDAlert alloc] initWithAlertView:vi frame:CGRectMake(0, 0, 200, 200) isCancel:NO];
    SDAlert *alert = [[SDAlert alloc] initWithTitle:@"测试标题" descTitle:@"好蛋疼啊，房价又涨了>_<!"];
    alert.myDelegate = self;
    [alert show];
    
}


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [super touchesBegan:touches withEvent:event];
    
    
    NSLog(@"点击了了viewController---");
    
}


- (void)alertDelegateButtonClick:(UIButton *)btn andButtonIndex:(int)buttonIndex
{
    NSLog(@"aler --- %@",btn);
}


@end
